package com.feng.entity;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

/**
 * @author: 丰
 * @date: 2023/1/30 16:23
 */
@Data
public class Permission implements GrantedAuthority {
//    private Long id;
//    private Long pid;
//    private String name;
//    private String icon;

    private String value;
//    private Integer type;
//    private String uri;
//    private Integer status;
//    private String createTime;
//    private Integer sort;


    // 以value字段作为权限的标准
    @Override
    public String getAuthority() {
        return this.value;
    }
}
